const state = {
  demo:{
  },
  open:false,
  videolist:'',
  videomessage:'',
  videoCourseid:null,
  addorupdate:null
}

const mutations = {
  SET_DEMO: (demo,data) =>{
    state.demo = data
  },
  SET_OPEN:(open,data)=>{
    state.open = data
  },
  SET_VIDEOLIST:(videolist,data)=>{
    state.videolist = data
  },
  SET_VIDEOMESSAGE:(videomessage,data)=>{
    state.videomessage = data
  },
  SET_VIDEOCOURSEID:(videoCourseid,data) =>{
    state.videoCourseid = data
  },
  SET_ADDORUPDATE:(addorupdate,data) =>{
    state.addorupdate = data
  }
}
const actions = {
  setDEMO({ commit }, data) {
    commit('SET_DEMO', data)
  },
  setOPEN({ commit }, data) {
    commit('SET_OPEN', data)
  }
  ,
  setVIDEOLIST({ commit }, data) {
    commit('SET_VIDEOLIST', data)
  },
  setVIDEOMESSAGE({ commit }, data) {
    commit('SET_VIDEOMESSAGE', data)
  },
  setVIDEOCOURSEID({ commit }, data) {
    commit('SET_VIDEOCOURSEID', data)
  },
  setADDORUPDATE({ commit }, data) {
    commit('SET_ADDORUPDATE', data)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions,
}

